package com.shuwen.gcdj.bean.dictionaryItem;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 *
 * </p>
 *
 * @author jxintao
 */
@ApiModel("字典选项对应实体")
@Data
public class DictionaryItemIdNameBean {

    @ApiModelProperty(value = "选项ID")
    private String id;

    @ApiModelProperty(value = "名称", required = true)
    @NotBlank
    @Size(max = 50, message = "选项名称不能超过50个字")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否启用：0-否，1-是")
    @Range(min = 0, max = 1, message = "是否启用只能传0或1")
    private Integer status = 1;

}
